package com.gimi.cloud.bbp.manage.service.app;

import com.gimi.cloud.bbp.common.exception.MsgException;
import com.gimi.cloud.bbp.common.utils.Page;
import com.gimi.cloud.bbp.dto.app.MajorAdDTO;
import com.gimi.cloud.bbp.entity.app.MajorAdEntity;

/**
 * @auther loongs
 * @date 2017/12/29  13:13
 */
public interface MajorAdService {
    /**
     * 获得首页广告列表（分页）
     * @param majorAdDTO
     * @return
     */
    Page<MajorAdDTO> getMajorAdList(MajorAdDTO majorAdDTO);

    /**
     * 添加首页广告
     * @param majorAdDTO
     * @return
     */
    boolean addMajorAd(MajorAdDTO majorAdDTO);

    /**
     * 转跳到指定首页广告界面
     * @param majorAdDTO
     * @return
     */
    MajorAdEntity gotoEditMajorAd(MajorAdDTO majorAdDTO);

    /**
     * 编辑指定首页广告
     * @param majorAdDTO
     * @return
     */
    boolean editMajorAd(MajorAdDTO majorAdDTO);

    /**
     * 删除指定首页广告
     * @param majorAdDTO
     * @return
     */
    boolean deleteMajorAd(MajorAdDTO majorAdDTO) throws MsgException;

    /**
     * 发布首页广告
     * @param majorAdDTO
     * @return
     * @throws MsgException
     */
    boolean underMajorAd(MajorAdDTO majorAdDTO) throws MsgException;

    /**
     * 撤下首页广告
     * @param majorAdDTO
     * @return
     * @throws MsgException
     */
    boolean publishMajorAd(MajorAdDTO majorAdDTO) throws MsgException;
}
